/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package pe.gob.pnp.actions;
import com.opensymphony.xwork2.*;
import java.sql.*;
import java.util.*;
import pe.gob.pnp.despachadores.*;
/**
 *
 * @author Administrador
 */
public class ListaConceptoPercibo extends ActionSupport {

    private List <ConceptoPercibo> lstConceptoPercibo;

    @Override
    public String execute(){
        try{
            setLstConceptoPercibo(ConceptoPerciboDespachador.obtenerConceptoPersibo());
        }catch(SQLException ex){
            ex.printStackTrace();
            return ERROR;
        }
        return SUCCESS;
    }

    /**
     * @return the lstConceptoPercibo
     */
    public List<ConceptoPercibo> getLstConceptoPercibo() {
        return lstConceptoPercibo;
    }

    /**
     * @param lstConceptoPercibo the lstConceptoPercibo to set
     */
    public void setLstConceptoPercibo(List<ConceptoPercibo> lstConceptoPercibo) {
        this.lstConceptoPercibo = lstConceptoPercibo;
    }

 
}
